import request from "@/plugins/request";
let pre = '/inteCater/canteenManager/cardManage';
if (process.env.NODE_ENV !== "development") {
    pre = '/api/sa/smar-catering' + pre;
}

// 根据登录用户获取卡信息
export function getCardWrap() {
    return request({
        url: `${pre}/getCardByLogin`,
        method: 'get'
    });
}


// 同步卡号
export function syncCardNum() {
    return request({
        url: `${pre}/updCardSync`,
        method: 'get'
    });
}


// 设置默认
export function setDefault(data) {
    return request({
        url: `${pre}/updDefault`,
        method: 'post',
        data
    });
}